package cn.turing.firecontrol.device.alarm.service.impl;

import cn.turing.firecontrol.device.alarm.entity.Sensor;
import cn.turing.firecontrol.device.alarm.mapper.SensorMapper;
import cn.turing.firecontrol.device.alarm.service.ISensorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 *
 * @param null
 * @return null
 */
@Service
public class SensorServiceImpl extends ServiceImpl<SensorMapper, Sensor> implements ISensorService {

    @Autowired
    SensorMapper sensorMapper;

    @Override
    public Sensor selectDeviceStaTusBySensorNo(String qwerrewq) {
        return sensorMapper.selectDeviceStaTusBySensorNo(qwerrewq);
    }

    @Override
    public int setDeviceStatusBySensorNo(String qwerrewq, int i) {
        return sensorMapper.setDeviceStatusBySensorNo(qwerrewq,i);
    }
}
